PESetPrintOptions

Use PESetPrintOptions to set the print options for the report to the values supplied in PEPrintOptions. Use this function any time you want to set the starting page number, the ending page number, the number of report copies, and/or collation instructions for a print job in response to user specifications at runtime.

C Syntax
BOOL CRPE_API PESetPrintOptions (
    short printJob,
    PEPrintOptions FAR *options );
Parameters

printJob

Specifies the print job for which you want to set printing options.

options

Specifies a pointer to PEPrintOptions. If this parameter is set to 0 (NULL), the function prompts the user for these options. Using this, you can get the behavior of the print-to-printer button in the preview window by calling PESetPrintOptions with a NULL pointer and then calling PEPrintWindow.

Returns
VB Syntax

VB Sample Code for modifying title, options, margins, and date

Declare Function PESetPrintOptions Lib "crpe32.dll" (ByVal printJob As 
Integer, Options As PEPrintOptions) As Integer
Delphi Syntax

Delphi code for getting/setting print options

function PESetPrintOptions (
    printJob: Word;
    var options: PEPrintOptions
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com